package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.TeamMemberItem;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.List;
import java.util.Map;

/**
 * Created by 71468 on 2018/3/30.
 */

public interface GetTeamStaffListContractor {
    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);

        void getList(Map<String, Object> request);
    }

    interface View extends BaseView {
        void onGetDataSuccess(List<TeamMemberItem> data);
    }

    interface Presenter {
        void getStaffList();

        void searchStaffMember(String name);
    }

    interface CallBack extends BaseHttpListener {
        void onSuccess(BaseResponse<List<TeamMemberItem>> response);
    }
}
